/* eslint-disable */
import request from '@/utils/request'
export function proxy(method,params) {
    return request({
      url: '/admin',
      method: method,
      params: params,
      withCredentials: true
    }).catch(error => {
        // 未授权的请求，需要重新登陆
        if (error == '401') {
            window.location.href = "/login"
        }
    })
}
 